package it.aekidna.cleverplatypus.utils
{
	import mx.core.ClassFactory;
	import mx.core.IFactory;

	public class InstantClassFactory implements IFactory
	{
		private var _factory : ClassFactory;
		public function InstantClassFactory( inGenerator : Class, inProperties : Object )
		{
			_factory = new ClassFactory( inGenerator );
			_factory.properties = inProperties;
		}
		
		public function newInstance() : *
		{
			return _factory.newInstance();
		}
		
	}
}